<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/commond/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>档期网</title>
		<link rel="shortcut icon" href="${ctx }/image/logo_ico.ico" />
		<s:include value="/commond/keydesc.jsp"></s:include>
		<!-- CSS -->
		<link href="${ctx}/css/head/head.css" rel="stylesheet" type="text/css" />
		<link href="${ctx}/css/invite/invite_nav.css" type="text/css" rel="stylesheet" />
		<link href="${ctx}/css/main.css" rel="stylesheet" type="text/css" />
		<link href="${ctx}/css/content/connect_box.css" rel="stylesheet" type="text/css" />
		<link href="${ctx}/css/connect/add_ct.css" rel="stylesheet" type="text/css" />
		
		<!-- JavaScript -->
		<script type="text/javascript" src="${ctx}/js/common/jquery.js"></script>
		<script type="text/javascript">
			var jQ = jQuery.noConflict();
			jQ(function(){
				//jQ("#headtable_btnzone div").removeClass("other_per").addClass("other_per");
				//jQ("#question_apply").removeClass("other_per").css({"backgroundPosition":"-375px -33px"});
			});
			function jalert(info){
				jQ("#ALERT p").text(info);
				jQ("#ALERT").dialog("option","buttons",{
					"确定" : function(){
						jQ(this).dialog("close");
					}
				}).dialog('open');
			}
			function callBack(flag,msg){
				if(flag>0){
					jQ("#questmsg").html(msg);
					if(flag==2){
						jQ("#title,#questfile,#context").val('');
					}
					setTimeout(function(){
						jQ("#questmsg").fadeOut("slow");
					},1500);
				}else{
					jalert(msg);
				}
			}
			function doSubmit(){
				if(jQ.trim(jQ("#title").val()).length<=0){
					jalert("请输入问题");
					return false;
				}
				if(jQ.trim(jQ("#context").val()).length<=0){
					jalert("请输入具体描述");
					return false;
				}
				jQ("#questmsg").html("提交中...").show();
				document.getElementById("questfrom").submit();
			}
		</script>
	</head>

	<body>
		<s:include value="/head.jsp"></s:include>
		<div class="invite_page" style="background: #C0D1DB;margin-top: 47px;height: 600px;">
			<table class="main" cellpadding="0" cellspacing="0" style="width: 900px;margin:30px auto;min-width: 900px;">
				<tr>
					<td class="center" style="width: 900px;padding: 0;">
						<div class="narrowtopline"></div>
			        	<ul class="narrowheadtitle">
			        		<li class="left"></li>
			        		<li class="title">
			        			<span>系统消息</span>
			        		</li>
			        		<li class="right"></li>
			        	</ul>
			        	<div class="narrowbottomline"></div>
						<div class="connect_box" style="height: 400px;">
						
			                <div class="add_ct">
			                	<div class="add_ul">
			                		<form id="questfrom" action="UserQuestionAjax!questSubmit.action" onsubmit="return false;" method="post" enctype="multipart/form-data" target="questIFrame">
				                        <div>
				                        	<span class="add_t">问题：</span>
				                            <input size="40" id="title" type="text" name="title"/>
				                        </div>
				                        <div >
				                        	<span class="add_t">截图：</span>
				                            <input size="40" name="uploadify" id="questfile" type="file" style="height: 20px;"/>
				                        </div>
				                        <div>
				                        	<span class="add_t">具体描述：</span>
				            				<textarea id="context" name="context"></textarea>
				                        </div>
				                        <div>
				                        	<button style="margin-left:90px;" onclick="doSubmit()" class="questionsubmit"></button>
				                        	<span id="questmsg" style="padding-top: 4px; padding-left: 5px;display: none;"></span>
				                        </div>
				                        <iframe name="questIFrame" width="0px" height="0px" frameborder="0" scrolling="no"></iframe>
									</form>
			                    </div>
			                </div>
						</div>
					</td>
				</tr>
			</table>
		</div>
		<s:include value="/foot.jsp"></s:include>
	</body>
</html>